﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="InputStudentInExam.aspx.cs" Inherits="ExamAnalysis.Input.InputStudentInExam" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" width="800">
        <tr>
            <td valign="top" style="padding-right:10px;">
                <img src="../Images/main/button-examstudents.jpg" />
            </td>
            <td>
                <ext:Panel runat="server" Height="400" FrameHeader="false" Frame="false" Width="650" Layout="HBoxLayout">
                    <Items>
                        <ext:GridPanel BodyBorder="0" ID="GridPanel_ExamInfo" runat="server" HideTitleEl="true" Width="250" Height="400"
                            Frame="false">
                            <Store>
                                <ext:Store ID="Store_ExamInfo" runat="server">
                                    <Model>
                                        <ext:Model ID="Model3" runat="server" IDProperty="ExamID">
                                            <Fields>
                                                <ext:ModelField Name="ExamID" />
                                                <ext:ModelField Name="ExamName" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel ID="ColumnModel3" runat="server">
                                <Columns>
                                    <ext:Column ID="Column1" Text="所有考试" Flex="1" runat="server" DataIndex="ExamName"
                                        Width="290">
                                    </ext:Column>
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" Mode="Single">
                                    <DirectEvents>
                                        <Select Buffer="250" OnEvent="RowSelect_ExamInfo">
                                            <ExtraParams>
                                                <ext:Parameter Name="ExamID" Value="record.getId()" Mode="Raw" />
                                            </ExtraParams>
                                        </Select>
                                    </DirectEvents>
                                </ext:RowSelectionModel>
                            </SelectionModel>
                        </ext:GridPanel>
                        <ext:GridPanel ID="GridPanel_StInExem" runat="server" Width="150" Height="400" Frame="false">
                            <Store>
                                <ext:Store ID="Store_StInExem" runat="server">
                                    <Model>
                                        <ext:Model ID="Model1" runat="server" IDProperty="StudentID">
                                            <Fields>
                                                <ext:ModelField Name="ExamID" />
                                                <ext:ModelField Name="StudentID" />
                                                <ext:ModelField Name="StudentName" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel ID="ColumnModel1" runat="server">
                                <Columns>
                                    <ext:Column ID="Column2" Flex="1" runat="server" Text="参考学生" DataIndex="StudentName"
                                        Width="140">
                                    </ext:Column>
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" Mode="Single">
                                    <DirectEvents>
                                        <Select Buffer="250">
                                            <ExtraParams>
                                                <ext:Parameter Name="ExamID" Value="record.getId()" Mode="Raw" />
                                            </ExtraParams>
                                        </Select>
                                    </DirectEvents>
                                </ext:RowSelectionModel>
                            </SelectionModel>
                        </ext:GridPanel>
                        <ext:GridPanel ID="ClassInfoGridPanel" runat="server" Frame="false" HideHeaders="true" Width="250" Height="400" >
                            <Store>
                                <ext:Store ID="Store2" runat="server">
                                    <Model>
                                        <ext:Model ID="Model2" runat="server" IDProperty="StudentID">
                                            <Fields>
                                                <ext:ModelField Name="StudentID" />
                                                <ext:ModelField Name="StudentCode" />
                                                <ext:ModelField Name="StudentName" />
                                                <ext:ModelField Name="ClassID" />
                                                <ext:ModelField Name="StudentType" />
                                                <ext:ModelField Name="Sex" />
                                                <ext:ModelField Name="IsValid" />
                                                <ext:ModelField Name="AccountID" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel>
                                <Columns>
                                    <ext:Column ID="Column3" runat="server" DataIndex="StudentCode" Text="学号" Width="80" />
                                    <ext:Column ID="Column4" runat="server" DataIndex="StudentName" Text="姓名" Width="50" />
                                    <ext:Column ID="Column5" runat="server" DataIndex="Sex" Text="性别" Width="30" />
                                    <ext:Column ID="Column6" runat="server" DataIndex="StudentType" Text="类别" Width="50" />
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel3" runat="server" Mode="Single" />
                            </SelectionModel>
                            <BottomBar>
                                <ext:Toolbar runat="server">
                                    <Items>
                                        <ext:ToolbarFill runat="server"></ext:ToolbarFill>
                                        <ext:Button ID="Button5" runat="server" Icon="ResultsetNext" StyleSpec="margin-bottom:2px;"
                                            OnDirectClick="Button5_DirectClick">
                                        </ext:Button>
                                        <ext:Button ID="Button6" runat="server" Icon="ResultsetLast" StyleSpec="margin-bottom:2px;"
                                            OnDirectClick="Button6_DirectClick">
                                        </ext:Button>
                                        <ext:Button ID="Button7" runat="server" Icon="ResultsetPrevious" StyleSpec="margin-bottom:2px;"
                                            OnDirectClick="Button7_DirectClick">
                                        </ext:Button>
                                        <ext:Button ID="Button8" runat="server" Icon="ResultsetFirst" StyleSpec="margin-bottom:2px;"
                                            OnDirectClick="Button8_DirectClick">
                                        </ext:Button>
                                        <ext:ToolbarFill runat="server"></ext:ToolbarFill>
                                    </Items>
                                </ext:Toolbar>
                            </BottomBar>
                            <TopBar>
                                <ext:Toolbar ID="Toolbar1" runat="server">
                                    <Items>
                                        <ext:Label Text="当前班级：" runat="server" />
                                        <ext:DropDownField ID="DropDownField1" runat="server" Text="全部"
                                            Width="150">
                                            <Component>
                                                <ext:GridPanel ID="GridPanel1" runat="server" Height="200">
                                                    <ColumnModel>
                                                        <Columns>
                                                            <ext:Column ID="Column14" runat="server" DataIndex="ClassName" Text="班级名称" Width="130">
                                                            </ext:Column>
                                                        </Columns>
                                                    </ColumnModel>
                                                    <SelectionModel>
                                                        <ext:RowSelectionModel ID="RowSelectionModel4" runat="server" Mode="Single" />
                                                    </SelectionModel>
                                                    <Store>
                                                        <ext:Store ID="Store1" runat="server">
                                                            <Model>
                                                                <ext:Model ID="Model4" runat="server" IDProperty="ClassID">
                                                                    <Fields>
                                                                        <ext:ModelField Name="SchoolID" />
                                                                        <ext:ModelField Name="FullName" />
                                                                        <ext:ModelField Name="AliasName" />
                                                                        <ext:ModelField Name="Type" />
                                                                        <ext:ModelField Name="ClassID" />
                                                                        <ext:ModelField Name="ClassCode" />
                                                                        <ext:ModelField Name="ClassName" />
                                                                        <ext:ModelField Name="ClassAliasName" />
                                                                        <ext:ModelField Name="IsValid" />
                                                                        <ext:ModelField Name="ClassGrade" />
                                                                        <ext:ModelField Name="EnrollYear" />
                                                                    </Fields>
                                                                </ext:Model>
                                                            </Model>
                                                        </ext:Store>
                                                    </Store>
                                                    <BottomBar>
                                                        <ext:Toolbar ID="Toolbar5" runat="server">
                                                            <Items>
                                                                <ext:Button ID="Button1" runat="server" OnDirectClick="Button_Click" Text="选择" />
                                                            </Items>
                                                        </ext:Toolbar>
                                                    </BottomBar>
                                                </ext:GridPanel>
                                            </Component>
                                        </ext:DropDownField>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                        </ext:GridPanel>
                    </Items>
                </ext:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
